package com.hyg.lib_common.DataModel.QuestionNaire;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

import org.litepal.crud.LitePalSupport;

public class HygSubject extends LitePalSupport {
    // 基础属性
    private int id = 0;  //题目序号
    private String QuestionNaireName = "";   //归属何种问卷名称
    private int QuestionNaireId = 0;   //归属何种问卷id
    // 基础属性
    private String SubjectContent = "";         //题目   或者   选项
    private int Sex = 0;                    // 题目对应性别:  1 为男性  ，2 为女性   ，   0  无性别区分
    private int StartAge = 0;               // 年龄范围限制，从最低年龄 0 岁
    private int EndAge = 120;               // 到最高 200 岁
    private boolean SelectCheck = false;        // 是否选择了该选项(交互显示用)
    private String SubjectType = "choice";
    private double SubjectScore = 0.00;       //该题目分值

    // 基础属性
    private String SubjectTypeOne = "";          //归属题目类型（各种体质、证型）
    private boolean ScoreOneMeasure = true;     //体质得分计算的 正反 顺序； 正序为true，反序为false
    private String SubjectTypeTwo = "";         //归属 兼容的另外题目类型（2种体质）
    private boolean ScoreTwoMeasure = true;     //体质得分计算的 正反 顺序； 正序为true，反序为false

    //扩展属性
    private String TextResult = "";              //该题目被选中后对应的 文字结果
    private double ScoreResult = 0.00;           //该题目被选中后对应的 分数结果
    // 基础属性
    private int Hierarchy = 0;           //题目所处 题库列表层级
    private int ParentSubjectId = 0;     //是否归属上级题的子题目，记录上级题目ID，0为无上级。
    private int SubjectOptionsId = 0;    //关联的题目选项组，选项组ID。
    private HygSubjectOptions hygSubjectOptions  = new HygSubjectOptions();     //关联的选项组


    public HygSubject() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getQuestionNaireName() {
        return QuestionNaireName;
    }

    public void setQuestionNaireName(String questionNaireName) {
        QuestionNaireName = questionNaireName;
    }

    public int getQuestionNaireId() {
        return QuestionNaireId;
    }

    public void setQuestionNaireId(int questionNaireId) {
        QuestionNaireId = questionNaireId;
    }

    public String getSubjectContent() {
        return SubjectContent;
    }

    public void setSubjectContent(String subjectContent) {
        SubjectContent = subjectContent;
    }

    public int getSex() {
        return Sex;
    }

    public void setSex(int Sex) {
        this.Sex = Sex;
    }

    public int getStartAge() {
        return StartAge;
    }

    public void setStartAge(int StartAge) {
        this.StartAge = StartAge;
    }

    public int getEndAge() {
        return EndAge;
    }

    public void setEndAge(int EndAge) {
        this.EndAge = EndAge;
    }

    public boolean isSelectCheck() {
        return SelectCheck;
    }

    public void setSelectCheck(boolean selectCheck) {
        SelectCheck = selectCheck;
    }

    public String getSubjectType() {
        return SubjectType;
    }

    public void setSubjectType(String subjectType) {
        SubjectType = subjectType;
    }

    public double getSubjectScore() {
        return SubjectScore;
    }

    public void setSubjectScore(double subjectScore) {
        SubjectScore = subjectScore;
    }

    public String getSubjectTypeOne() {
        return SubjectTypeOne;
    }

    public void setSubjectTypeOne(String subjectTypeOne) {
        SubjectTypeOne = subjectTypeOne;
    }

    public boolean isScoreOneMeasure() {
        return ScoreOneMeasure;
    }

    public void setScoreOneMeasure(boolean scoreOneMeasure) {
        ScoreOneMeasure = scoreOneMeasure;
    }

    public String getSubjectTypeTwo() {
        return SubjectTypeTwo;
    }

    public void setSubjectTypeTwo(String subjectTypeTwo) {
        SubjectTypeTwo = subjectTypeTwo;
    }

    public boolean isScoreTwoMeasure() {
        return ScoreTwoMeasure;
    }

    public void setScoreTwoMeasure(boolean scoreTwoMeasure) {
        ScoreTwoMeasure = scoreTwoMeasure;
    }

    public String getTextResult() {
        return TextResult;
    }

    public void setTextResult(String textResult) {
        TextResult = textResult;
    }

    public double getScoreResult() {
        return ScoreResult;
    }

    public void setScoreResult(double scoreResult) {
        ScoreResult = scoreResult;
    }

    public int getHierarchy() {
        return Hierarchy;
    }

    public void setHierarchy(int hierarchy) {
        Hierarchy = hierarchy;
    }

    public int getParentSubjectId() {
        return ParentSubjectId;
    }

    public void setParentSubjectId(int parentSubjectId) {
        ParentSubjectId = parentSubjectId;
    }

    public int getSubjectOptionsId() {
        return SubjectOptionsId;
    }

    public void setSubjectOptionsId(int subjectOptionsId) {
        SubjectOptionsId = subjectOptionsId;
    }

    public HygSubjectOptions getHygSubjectOptions() {
        return hygSubjectOptions;
    }

    @SuppressLint("LongLogTag")
    public void setHygSubjectOptions(HygSubjectOptions hygSubjectOptions) {
        this.hygSubjectOptions = hygSubjectOptions;
        Log.d("HygSubjectOptions","-  -赋值了"+this.hygSubjectOptions.getId()+"");
    }
}
